-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Abdm M3 #6487
Abdm M3 #6487
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
✅ Deploy Preview for care-egov-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
👋 Hi, @khavinshankar, This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there. |
Hi, This pr has been automatically marked as stale because it has not had any recent activity. It will be automatically closed if no further activity occurs for 7 more days. Thank you for your contributions. |
Hi, @gigincg, @nihal467, @khavinshankar, @mathew-alex, This pr has been automatically closed because it has not had any recent activity. Thank you for your contributions. Feel free to repopen the pr. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just fix the unintentional hostname change
👋 Hi, @khavinshankar, This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there. |
|
||
export const linkViaQR = (abha_details: any, patientId?: string) => { | ||
return fireRequest("linkViaQR", [], { | ||
...abha_details, | ||
patientId, | ||
}); | ||
}; | ||
|
||
export const linkCareContext = ( | ||
consultationId: string, | ||
data: { name?: string; gender?: "M" | "F" | "O"; dob?: string } | ||
) => { | ||
return fireRequest("linkCareContext", [], { | ||
consultation: consultationId, | ||
...data, | ||
}); | ||
}; | ||
|
||
export const getAbhaCard = (patient: string, type: "pdf" | "png") => { | ||
return fireRequest("getAbhaCard", [], { | ||
patient, | ||
type, | ||
}); | ||
}; | ||
|
||
export const getHealthInformation = (artefactId: string) => { | ||
return fireRequest("getHealthInformation", [], { artefactId }); | ||
}; | ||
|
||
export const healthFacilityActions = { | ||
list: (params: object) => { | ||
return fireRequest("listHealthFacilities", [], params); | ||
}, | ||
|
||
create: (data: object) => { | ||
return fireRequest("createHealthFacility", [], data); | ||
}, | ||
|
||
read: (id: string) => { | ||
return fireRequest( | ||
"getHealthFacility", | ||
[], | ||
{}, | ||
{ facility_id: id }, | ||
undefined, | ||
true | ||
); | ||
}, | ||
|
||
update: (id: string, data: object) => { | ||
return fireRequest("updateHealthFacility", [], data, { | ||
facility_id: id, | ||
}); | ||
}, | ||
|
||
partialUpdate: (id: string, data: object) => { | ||
return fireRequest("partialUpdateHealthFacility", [], data, { | ||
facility_id: id, | ||
}); | ||
}, | ||
|
||
registerService: (id: string) => { | ||
return fireRequest( | ||
"registerHealthFacilityAsService", | ||
[], | ||
{}, | ||
{ facility_id: id } | ||
); | ||
}, | ||
}; | ||
|
||
export const consentActions = { | ||
list: (params: object) => { | ||
return fireRequest("listConsents", [], params); | ||
}, | ||
|
||
create: (data: object) => { | ||
return fireRequest("createConsent", [], data); | ||
}, | ||
|
||
read: (id: string) => { | ||
return fireRequest("getConsent", [], {}, { id }); | ||
}, | ||
|
||
status: (id: string) => { | ||
return fireRequest("checkConsentStatus", [], {}, { id }, undefined, true); | ||
}, | ||
}; | ||
|
||
export const patientsActions = { | ||
find: (params: object) => { | ||
return fireRequest("findPatients", [], params); | ||
}, | ||
}; | ||
|
||
export const listAssetAvailability = (params: object) => | ||
fireRequest("listAssetAvailability", [], params); | ||
export const getAssetAvailability = (id: string) => | ||
fireRequest("getAssetAvailability", [], {}, { id }); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this added accidentally by a bad resolve of merge conflict?
Also, I see only consentActions
redux action that is being newly used by useDispatch in this PR. Can we migrate that to useQuery
instead?
Rest of the newly added redux actions can be removed since they are not referenced nor used by useQuery.
👋 Hi, @khavinshankar, This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there. |
Closing this pr and creating a new pr with the same branch |
https://drive.google.com/file/d/1UVWtAnLy7RNVO4rZIawQZz9jWyMg53SX/view?usp=sharing
This PR covers all the ABDM M3 features,